package zy.wq.common;


public class InvocationDataResult<T> extends InvocationResult {

	/**
	 * 
	 */
	private static final long serialVersionUID = -220626590959303947L;
	private T data;
	
	public InvocationDataResult() {
		
	}
	
	public InvocationDataResult(T data) {
		super(InvocationResult.SUCCESS,null,null);
		this.data = data;
	}
	
	public InvocationDataResult(String status,String code,String msg,T data) {
		super(status,code,msg);
		this.data = data;
	}

	public T  getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "InvocationDataResult [data=" + data + ", getResult()="
				+ getResult() + ", getCode()=" + getCode() + ", getMessage()="
				+ getMessage() + "]";
	}

	
	
	
}
